package BanyuanClub.Study.Day0304;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 字节缓冲输出流
 */
public class TextBufferedOutputStream {
    public static void main(String[] args) {
        try(BufferedOutputStream bos = new BufferedOutputStream(
                new FileOutputStream("sre.txt"))){
            bos.write("hollo".getBytes());
            bos.flush();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
